﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020003D9 RID: 985
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class DisplayAvatarDetailInfo : IMessage<DisplayAvatarDetailInfo>, IMessage, IEquatable<DisplayAvatarDetailInfo>, IDeepCloneable<DisplayAvatarDetailInfo>, IBufferMessage
	{
		// Token: 0x17000C93 RID: 3219
		// (get) Token: 0x06002BEF RID: 11247 RVA: 0x000791BF File Offset: 0x000773BF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<DisplayAvatarDetailInfo> Parser
		{
			get
			{
				return DisplayAvatarDetailInfo._parser;
			}
		}

		// Token: 0x17000C94 RID: 3220
		// (get) Token: 0x06002BF0 RID: 11248 RVA: 0x000791C6 File Offset: 0x000773C6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return DisplayAvatarDetailInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000C95 RID: 3221
		// (get) Token: 0x06002BF1 RID: 11249 RVA: 0x000791D8 File Offset: 0x000773D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return DisplayAvatarDetailInfo.Descriptor;
			}
		}

		// Token: 0x06002BF2 RID: 11250 RVA: 0x000791DF File Offset: 0x000773DF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DisplayAvatarDetailInfo()
		{
		}

		// Token: 0x06002BF3 RID: 11251 RVA: 0x00079200 File Offset: 0x00077400
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DisplayAvatarDetailInfo(DisplayAvatarDetailInfo other) : this()
		{
			this.skilltreeList_ = other.skilltreeList_.Clone();
			this.pos_ = other.pos_;
			this.level_ = other.level_;
			this.promotion_ = other.promotion_;
			this.exp_ = other.exp_;
			this.dressedSkinId_ = other.dressedSkinId_;
			this.rank_ = other.rank_;
			this.relicList_ = other.relicList_.Clone();
			this.equipment_ = ((other.equipment_ != null) ? other.equipment_.Clone() : null);
			this.avatarId_ = other.avatarId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06002BF4 RID: 11252 RVA: 0x000792B6 File Offset: 0x000774B6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DisplayAvatarDetailInfo Clone()
		{
			return new DisplayAvatarDetailInfo(this);
		}

		// Token: 0x17000C96 RID: 3222
		// (get) Token: 0x06002BF5 RID: 11253 RVA: 0x000792BE File Offset: 0x000774BE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<AvatarSkillTree> SkilltreeList
		{
			get
			{
				return this.skilltreeList_;
			}
		}

		// Token: 0x17000C97 RID: 3223
		// (get) Token: 0x06002BF6 RID: 11254 RVA: 0x000792C6 File Offset: 0x000774C6
		// (set) Token: 0x06002BF7 RID: 11255 RVA: 0x000792CE File Offset: 0x000774CE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Pos
		{
			get
			{
				return this.pos_;
			}
			set
			{
				this.pos_ = value;
			}
		}

		// Token: 0x17000C98 RID: 3224
		// (get) Token: 0x06002BF8 RID: 11256 RVA: 0x000792D7 File Offset: 0x000774D7
		// (set) Token: 0x06002BF9 RID: 11257 RVA: 0x000792DF File Offset: 0x000774DF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Level
		{
			get
			{
				return this.level_;
			}
			set
			{
				this.level_ = value;
			}
		}

		// Token: 0x17000C99 RID: 3225
		// (get) Token: 0x06002BFA RID: 11258 RVA: 0x000792E8 File Offset: 0x000774E8
		// (set) Token: 0x06002BFB RID: 11259 RVA: 0x000792F0 File Offset: 0x000774F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Promotion
		{
			get
			{
				return this.promotion_;
			}
			set
			{
				this.promotion_ = value;
			}
		}

		// Token: 0x17000C9A RID: 3226
		// (get) Token: 0x06002BFC RID: 11260 RVA: 0x000792F9 File Offset: 0x000774F9
		// (set) Token: 0x06002BFD RID: 11261 RVA: 0x00079301 File Offset: 0x00077501
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Exp
		{
			get
			{
				return this.exp_;
			}
			set
			{
				this.exp_ = value;
			}
		}

		// Token: 0x17000C9B RID: 3227
		// (get) Token: 0x06002BFE RID: 11262 RVA: 0x0007930A File Offset: 0x0007750A
		// (set) Token: 0x06002BFF RID: 11263 RVA: 0x00079312 File Offset: 0x00077512
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint DressedSkinId
		{
			get
			{
				return this.dressedSkinId_;
			}
			set
			{
				this.dressedSkinId_ = value;
			}
		}

		// Token: 0x17000C9C RID: 3228
		// (get) Token: 0x06002C00 RID: 11264 RVA: 0x0007931B File Offset: 0x0007751B
		// (set) Token: 0x06002C01 RID: 11265 RVA: 0x00079323 File Offset: 0x00077523
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Rank
		{
			get
			{
				return this.rank_;
			}
			set
			{
				this.rank_ = value;
			}
		}

		// Token: 0x17000C9D RID: 3229
		// (get) Token: 0x06002C02 RID: 11266 RVA: 0x0007932C File Offset: 0x0007752C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<DisplayRelicInfo> RelicList
		{
			get
			{
				return this.relicList_;
			}
		}

		// Token: 0x17000C9E RID: 3230
		// (get) Token: 0x06002C03 RID: 11267 RVA: 0x00079334 File Offset: 0x00077534
		// (set) Token: 0x06002C04 RID: 11268 RVA: 0x0007933C File Offset: 0x0007753C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DisplayEquipmentInfo Equipment
		{
			get
			{
				return this.equipment_;
			}
			set
			{
				this.equipment_ = value;
			}
		}

		// Token: 0x17000C9F RID: 3231
		// (get) Token: 0x06002C05 RID: 11269 RVA: 0x00079345 File Offset: 0x00077545
		// (set) Token: 0x06002C06 RID: 11270 RVA: 0x0007934D File Offset: 0x0007754D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AvatarId
		{
			get
			{
				return this.avatarId_;
			}
			set
			{
				this.avatarId_ = value;
			}
		}

		// Token: 0x06002C07 RID: 11271 RVA: 0x00079356 File Offset: 0x00077556
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as DisplayAvatarDetailInfo);
		}

		// Token: 0x06002C08 RID: 11272 RVA: 0x00079364 File Offset: 0x00077564
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(DisplayAvatarDetailInfo other)
		{
			return other != null && (other == this || (this.skilltreeList_.Equals(other.skilltreeList_) && this.Pos == other.Pos && this.Level == other.Level && this.Promotion == other.Promotion && this.Exp == other.Exp && this.DressedSkinId == other.DressedSkinId && this.Rank == other.Rank && this.relicList_.Equals(other.relicList_) && object.Equals(this.Equipment, other.Equipment) && this.AvatarId == other.AvatarId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06002C09 RID: 11273 RVA: 0x0007943C File Offset: 0x0007763C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.skilltreeList_.GetHashCode();
			if (this.Pos != 0U)
			{
				num ^= this.Pos.GetHashCode();
			}
			if (this.Level != 0U)
			{
				num ^= this.Level.GetHashCode();
			}
			if (this.Promotion != 0U)
			{
				num ^= this.Promotion.GetHashCode();
			}
			if (this.Exp != 0U)
			{
				num ^= this.Exp.GetHashCode();
			}
			if (this.DressedSkinId != 0U)
			{
				num ^= this.DressedSkinId.GetHashCode();
			}
			if (this.Rank != 0U)
			{
				num ^= this.Rank.GetHashCode();
			}
			num ^= this.relicList_.GetHashCode();
			if (this.equipment_ != null)
			{
				num ^= this.Equipment.GetHashCode();
			}
			if (this.AvatarId != 0U)
			{
				num ^= this.AvatarId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06002C0A RID: 11274 RVA: 0x00079543 File Offset: 0x00077743
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06002C0B RID: 11275 RVA: 0x0007954B File Offset: 0x0007774B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06002C0C RID: 11276 RVA: 0x00079554 File Offset: 0x00077754
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.DressedSkinId != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.DressedSkinId);
			}
			this.skilltreeList_.WriteTo(ref output, DisplayAvatarDetailInfo._repeated_skilltreeList_codec);
			if (this.AvatarId != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.AvatarId);
			}
			if (this.Promotion != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.Promotion);
			}
			if (this.Pos != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.Pos);
			}
			if (this.equipment_ != null)
			{
				output.WriteRawTag(74);
				output.WriteMessage(this.Equipment);
			}
			if (this.Level != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.Level);
			}
			if (this.Exp != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.Exp);
			}
			if (this.Rank != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.Rank);
			}
			this.relicList_.WriteTo(ref output, DisplayAvatarDetailInfo._repeated_relicList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06002C0D RID: 11277 RVA: 0x00079678 File Offset: 0x00077878
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.skilltreeList_.CalculateSize(DisplayAvatarDetailInfo._repeated_skilltreeList_codec);
			if (this.Pos != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Pos);
			}
			if (this.Level != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Level);
			}
			if (this.Promotion != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Promotion);
			}
			if (this.Exp != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Exp);
			}
			if (this.DressedSkinId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.DressedSkinId);
			}
			if (this.Rank != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Rank);
			}
			num += this.relicList_.CalculateSize(DisplayAvatarDetailInfo._repeated_relicList_codec);
			if (this.equipment_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Equipment);
			}
			if (this.AvatarId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AvatarId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06002C0E RID: 11278 RVA: 0x00079784 File Offset: 0x00077984
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(DisplayAvatarDetailInfo other)
		{
			if (other == null)
			{
				return;
			}
			this.skilltreeList_.Add(other.skilltreeList_);
			if (other.Pos != 0U)
			{
				this.Pos = other.Pos;
			}
			if (other.Level != 0U)
			{
				this.Level = other.Level;
			}
			if (other.Promotion != 0U)
			{
				this.Promotion = other.Promotion;
			}
			if (other.Exp != 0U)
			{
				this.Exp = other.Exp;
			}
			if (other.DressedSkinId != 0U)
			{
				this.DressedSkinId = other.DressedSkinId;
			}
			if (other.Rank != 0U)
			{
				this.Rank = other.Rank;
			}
			this.relicList_.Add(other.relicList_);
			if (other.equipment_ != null)
			{
				if (this.equipment_ == null)
				{
					this.Equipment = new DisplayEquipmentInfo();
				}
				this.Equipment.MergeFrom(other.Equipment);
			}
			if (other.AvatarId != 0U)
			{
				this.AvatarId = other.AvatarId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06002C0F RID: 11279 RVA: 0x00079886 File Offset: 0x00077A86
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06002C10 RID: 11280 RVA: 0x00079890 File Offset: 0x00077A90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 56U)
				{
					if (num <= 34U)
					{
						if (num == 16U)
						{
							this.DressedSkinId = input.ReadUInt32();
							continue;
						}
						if (num == 34U)
						{
							this.skilltreeList_.AddEntriesFrom(ref input, DisplayAvatarDetailInfo._repeated_skilltreeList_codec);
							continue;
						}
					}
					else
					{
						if (num == 40U)
						{
							this.AvatarId = input.ReadUInt32();
							continue;
						}
						if (num == 48U)
						{
							this.Promotion = input.ReadUInt32();
							continue;
						}
						if (num == 56U)
						{
							this.Pos = input.ReadUInt32();
							continue;
						}
					}
				}
				else if (num <= 80U)
				{
					if (num == 74U)
					{
						if (this.equipment_ == null)
						{
							this.Equipment = new DisplayEquipmentInfo();
						}
						input.ReadMessage(this.Equipment);
						continue;
					}
					if (num == 80U)
					{
						this.Level = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 104U)
					{
						this.Exp = input.ReadUInt32();
						continue;
					}
					if (num == 112U)
					{
						this.Rank = input.ReadUInt32();
						continue;
					}
					if (num == 122U)
					{
						this.relicList_.AddEntriesFrom(ref input, DisplayAvatarDetailInfo._repeated_relicList_codec);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x0400115C RID: 4444
		private static readonly MessageParser<DisplayAvatarDetailInfo> _parser = new MessageParser<DisplayAvatarDetailInfo>(() => new DisplayAvatarDetailInfo());

		// Token: 0x0400115D RID: 4445
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400115E RID: 4446
		public const int SkilltreeListFieldNumber = 4;

		// Token: 0x0400115F RID: 4447
		private static readonly FieldCodec<AvatarSkillTree> _repeated_skilltreeList_codec = FieldCodec.ForMessage<AvatarSkillTree>(34U, AvatarSkillTree.Parser);

		// Token: 0x04001160 RID: 4448
		private readonly RepeatedField<AvatarSkillTree> skilltreeList_ = new RepeatedField<AvatarSkillTree>();

		// Token: 0x04001161 RID: 4449
		public const int PosFieldNumber = 7;

		// Token: 0x04001162 RID: 4450
		private uint pos_;

		// Token: 0x04001163 RID: 4451
		public const int LevelFieldNumber = 10;

		// Token: 0x04001164 RID: 4452
		private uint level_;

		// Token: 0x04001165 RID: 4453
		public const int PromotionFieldNumber = 6;

		// Token: 0x04001166 RID: 4454
		private uint promotion_;

		// Token: 0x04001167 RID: 4455
		public const int ExpFieldNumber = 13;

		// Token: 0x04001168 RID: 4456
		private uint exp_;

		// Token: 0x04001169 RID: 4457
		public const int DressedSkinIdFieldNumber = 2;

		// Token: 0x0400116A RID: 4458
		private uint dressedSkinId_;

		// Token: 0x0400116B RID: 4459
		public const int RankFieldNumber = 14;

		// Token: 0x0400116C RID: 4460
		private uint rank_;

		// Token: 0x0400116D RID: 4461
		public const int RelicListFieldNumber = 15;

		// Token: 0x0400116E RID: 4462
		private static readonly FieldCodec<DisplayRelicInfo> _repeated_relicList_codec = FieldCodec.ForMessage<DisplayRelicInfo>(122U, DisplayRelicInfo.Parser);

		// Token: 0x0400116F RID: 4463
		private readonly RepeatedField<DisplayRelicInfo> relicList_ = new RepeatedField<DisplayRelicInfo>();

		// Token: 0x04001170 RID: 4464
		public const int EquipmentFieldNumber = 9;

		// Token: 0x04001171 RID: 4465
		private DisplayEquipmentInfo equipment_;

		// Token: 0x04001172 RID: 4466
		public const int AvatarIdFieldNumber = 5;

		// Token: 0x04001173 RID: 4467
		private uint avatarId_;
	}
}
